#include<iostream>
using namespace std;
typedef long long LL;
const LL P = 999068070;
LL ans[105] = { 1 };
int a, b;
int main()
{
	cin >> a >> b;
	for (int i = 1; i <= 104; i++) {
		ans[i] = ans[i - 1] * i % P;
	}
	a = (a < 103 ? ans[a] : 0);
	b = (b < 103 ? ans[b] : 0);
	if (a > b) puts("a is the winner!");
	else if (a < b) puts("b is the winner!");
	else puts("There is no winner!");
	return 0;
}